// Learn TypeScript:
//  - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html

import UIBasic from "../../Framework/Managers/UIManage/UIBasic";
import UIManage from "../../Framework/Managers/UIManage/UIManage";

const {ccclass, property} = cc._decorator;

@ccclass
export default class ViewTest extends UIBasic {

    @property(cc.Label)
    label: cc.Label = null;

    @property
    text: string = 'hello';

    // LIFE-CYCLE CALLBACKS:

    onLoad () {}

    start () {

    }
    init(TT) {
        console.log('====>>>', TT);
    }

    xxxx() {
        UIManage.Instance.DelayReleaseUIPannel(this.ui_uid);
    }
    // update (dt) {}

    protected onDestroy(): void {
        super.onDestroy();

        setTimeout(() => {
            console.log('+++++++++++', cc.assetManager.assets)
        },3000)
    }
}
